<template>
	<div class="page-setting">
		<div class="crumbs">
			<router-link to="/">首页</router-link> / <span>消防档案</span> / <span class="active">消防合法文书</span>
		</div>
		<el-container :style="{height: mainH+'px'}">
		  	<el-main class="census-main">
		  		<Picture
					v-if="id!=''"
					:id="id"></Picture>
		  	</el-main>
		</el-container>
	</div>
</template>
<script>
import Picture from '@/components/census/record/DetailPicture.vue'
export default {
	name: 'Document',
	components: {
    Picture
	},
	props: {
		winH: {
			type: Number,
			default: 500
		}
	},
	data () {
		return {
      id:''
		}
	},
	watch: {},
	computed: {
		mainH () {
			return this.winH-219
		}
	},
	methods: {
    getData () {
      this.$get('/business/business/detail').then(res => {
        this.id = res.data.id;
      }, (err) =>{
      })
    }
	},
	created () {
    this.getData()
	},
	activated () {
		
	},
	mounted () {
		
	}
}
</script>
